package com.hsy.swu.roomdb

import androidx.room.Dao
import androidx.room.Insert
import androidx.room.Query
import com.hsy.swu.home.exam.ExamModel

@Dao
interface ExamDao {
    @Insert
    fun insertAll(examList: List<ExamModel>)

    @Query("DELETE FROM ExamModel")
    fun deleteAll()

    @Query("SELECT * FROM ExamModel")
    fun getAll(): List<ExamModel>
}